import request from '@/utils/request'

// 查询路由器列表
export function listRouter(query) {
  return request({
    url: '/experiment/router/list',
    method: 'get',
    params: query
  })
}

// 查询路由器详细
export function getRouter(routerId) {
  return request({
    url: '/experiment/router/' + routerId,
    method: 'get'
  })
}

// 新增路由器
export function addRouter(data) {
  return request({
    url: '/experiment/router',
    method: 'post',
    data: data
  })
}

// 修改路由器
export function updateRouter(data) {
  return request({
    url: '/experiment/router',
    method: 'put',
    data: data
  })
}

// 删除路由器
export function delRouter(routerId) {
  return request({
    url: '/experiment/router/' + routerId,
    method: 'delete'
  })
}
